from rest_framework.serializers import ModelSerializer

from goods.models import Carousel, Goods, Category, GoodImg, GoodCollect

#轮播图
class Carousel_Serializer(ModelSerializer):
    class Meta:
        model = Carousel
        fields = "__all__"
#商品
class Goods_Serializer(ModelSerializer):
    class Meta:
        model = Goods
        fields = "__all__"

#商品类别
class Category_Serializer(ModelSerializer):
    class Meta:
        model = Category
        fields = "__all__"



#商品类别
class GoodImg_Serializer(ModelSerializer):
    class Meta:
        model = GoodImg
        fields = "__all__"



class GoodCollect_Serializer(ModelSerializer):
    class Meta:
        model = GoodCollect
        fields = "__all__"
